import router from '@/router'

import { showNotify } from 'vant';


export const useIsLogin = () => {
  if (localStorage.getItem('token')) {
    showNotify({
      type: 'success',
      message: '成功->',
    });
  } else {
    router.push('/login');
  }
};
